import time
import json
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://login.taobao.com/')

time.sleep(5)
dictCookies = driver.get_cookies()
print(dictCookies)

jsonCookies = json.dumps(dictCookies)

with open('Cookie_tao.json', 'w') as f:
    f.write(jsonCookies)
